package Utils

import java.text.SimpleDateFormat

object TimeUtils {
  def costtime(starttime: String, receivetime: String): Long = {
    val sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS")
    val startTime = sdf.parse(starttime.substring(0, 17)).getTime
    val endTime = sdf.parse(receivetime).getTime
    endTime - startTime
  }

}
